# !/usr/bin/python
# -*- coding: utf-8 -*-

def bubbleSort(arr):
    for i in range(1, len(arr)):
        for j in range(0, len(arr) - i):
            if arr[j] > arr[j+1]:
                tmp = arr[j]
                arr[j] = arr[j + 1]
                arr[j + 1] = tmp
    return arr


if __name__ == '__main__':
    list1 = [23, 45, 1221, 54, 3, 6, 4, 4545, 23, 45, 33]
    print(bubbleSort(list1))